-- 获取参数：库存信息key，库存信息，
--local debug_info = "处理键: " .. KEYS[1] .. ", 值: "..ARGV[1];
--local de = " 处理键: " .. KEYS[2] .. ", 值: "..ARGV[2];
--debug_info = debug_info .. de;

redis.call('setnx',KEYS[1],ARGV[1])
--redis.call('sadd',KEYS[2],ARGV[2])
local id = redis.call('XADD','stream:order','*','','')
redis.call('XDEL','stream:order',id)

return nil;